package com.xzz.cloud.alibaba.service;

import com.xzz.cloud.entity.CommonResult;
import com.xzz.cloud.entity.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: hhz
 * @createDate: 2021-4-6
 */
@FeignClient(value = "nacos-payment-provider",fallback = PaymentFallBackService.class)
public interface PaymentService {
    @GetMapping("/payment/{id} ")
    CommonResult<Payment> payment(@PathVariable("id") Long Id);
}
